import request from "@/utils/request";

export function addAppointment(data) {
  return request({
    url: "/appointment/add",
    method: "post",
    data,
  });
}

export function removeAppointment(data) {
  return request({
    url: "/appointment/remove",
    method: "post",
    data,
  });
}

export function updateAppointment(data) {
  return request({
    url: "/appointment/update",
    method: "post",
    data,
  });
}

export function getAppointmentInfo(data) {
  return request({
    url: "/appointment/getAppointmentInfo",
    method: "get",
    params: data
  });
}
